package com.wss.day08.Test3;

import java.util.Arrays;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/29
 */
public class Number {
    public static void main(String[] args) {
        String str = "9 10 12  6  8 15";

        String[] strArray = str.split("\\s+");
        int[] numbers = new int[strArray.length];

        for (int i = 0; i < strArray.length; i++) {
            numbers[i] = Integer.parseInt(strArray[i]);
        }

        Arrays.sort(numbers);

        System.out.println(Arrays.toString(numbers));
    }
}
